import type { RouteRecordRaw } from 'vue-router'

const product: RouteRecordRaw = {
  name: 'product',
  path: '/product',
  meta: {
    title: '商品管理',
    icon: 'icon-park-outline:jewelry',
  },
  redirect: '/product/productList',
  children: [
    {
      name: 'product:productList',
      path: '/product/productList',
      meta: {
        title: '商品列表',
        icon: 'mingcute:dashboard-line',
      },
      component: () => import('~/base/views/product/productList/index.vue'),
    },
    {
      name: 'product:category',
      path: '/product/category',
      meta: {
        title: '商品分类',
        icon: 'mingcute:dashboard-line',
      },
      component: () => import('~/base/views/product/category/index.vue'),
    },
    {
      name: 'product:productTemplate',
      path: '/product/productTemplate',
      meta: {
        title: '商品充值模版',
        icon: 'mingcute:dashboard-line',
      },
      component: () => import('~/base/views/product/productTemplate/index.vue'),
    },
    {
      name: 'product:cardstock',
      path: '/product/cardstock',
      meta: {
        title: '卡密库存',
        icon: 'mingcute:dashboard-line',
      },
      component: () => import('~/base/views/product/cardstock/index.vue'),
    },
    {
      name: 'product:supplychannel',
      path: '/product/supplychannel',
      meta: {
        title: '货源渠道',
        icon: 'mingcute:dashboard-line',
      },
      component: () => import('~/base/views/product/supplychannel/index2.vue'),
    },
    {
      name: 'product:fixaprice',
      path: '/product/fixaprice',
      meta: {
        title: '定价模版',
        icon: 'mingcute:dashboard-line',
      },
      component: () => import('~/base/views/product/fixaprice/index.vue')
    },
  ],
}

export default product
